//
//  GMHButtonCell.m
//  
//
//  Created by 郭明皓 on 15/10/24.
//
//

#import "GMHButtonCell.h"
#import "DKNightVersion.h"
@implementation GMHButtonCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}
- (void)create
{
    [DKNightVersionManager addClassToSet:self.class];
    self.nightBackgroundColor = UIColorFromRGB(0x343434);
    
    self.views = [[UIView alloc]init];
    [self.contentView addSubview:self.views];
    [self.views release];
    
    self.images = [[UIImageView alloc]init];
    [self.views addSubview:self.images];
    [self.views release];
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.views.frame = CGRectMake(5, 5, self.contentView.frame.size.width - 10, self.contentView.frame.size.height - 10);
    self.images.frame = CGRectMake(0, 0, self.views.frame.size.width, self.views.frame.size.height);
}
@end
